﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XCommunity.Documents;
using XCommunity.Data;

namespace XCommunity.Frames
{
  /// <summary>
  /// 所有版面的基类型
  /// </summary>
  public abstract class BoardFrame
  {


    private FrameService _service;

    /// <summary>
    /// 管理此版面对象的框架服务
    /// </summary>
    public FrameService Service
    {
      get { return _service; }
    }



    private string _identity;

    /// <summary>
    /// 此版面对象的标识名
    /// </summary>
    public string ID
    {
      get { return _identity; }
    }



    protected BoardFrame( FrameService service, string id )
    {
      _service = service;
      _identity = id;
    }


    public abstract void LoadSettings( IDictionary<string, string> settings );


    public abstract IEnumerable<TopicFrame> GetTopics();
  }
}
